import 'package:fluro/fluro.dart';
import 'package:flutter1911/router/detail_handler.dart';

class Routers {
  static String root = '/'; //根目录
  static String detailsPage = '/detail'; //详情的路径
  static void configureRouters(FluroRouter fluroRouter) {
    fluroRouter.notFoundHandler = Handler(handlerFunc: (context, params) {
      print('ERROR====================>当前跳转规则没找到');
      return null;
    });
    fluroRouter.define(detailsPage, handler: detailHandler);
  }
}
